#include "BasePos.h"

BasePos::BasePos(){
	m_isDebug = false;
	m_pos = ccp(0,0);
}
BasePos::~BasePos(){

}

BasePos* BasePos::create(CCPoint pos){
	BasePos* basePos = new BasePos();
	if(basePos && basePos->init(pos)){
		basePos->autorelease();
	} else{
		CC_SAFE_DELETE(basePos);
		basePos = NULL;
	}
	return basePos;
}

bool BasePos::init(CCPoint pos){
	bool bRet = false;
	do{
		m_pos = pos;

		bRet = true;
	}while(0);

	return bRet;
}

BasePos* BasePos::create(CCPoint pos,bool isDebug){
	BasePos* basePos = new BasePos();
	if(basePos && basePos->init(pos,isDebug)){
		basePos->autorelease();
	} else{
		CC_SAFE_DELETE(basePos);
		basePos = NULL;
	}
	return basePos;
}

bool BasePos::init(CCPoint pos,bool isDebug){
	bool bRet = false;
	do{
		CC_BREAK_IF(!init(pos));

		m_isDebug = isDebug;

		bRet = true;
	}while(0);

	return bRet;
}

void BasePos::draw(){

}

bool BasePos::isClickMe(CCPoint pos){
	return false;
}